Information recording medium information recording method and information recording/reproduction system

ABSTRACT

An information recording medium including a plurality of sectors of the present invention includes: a first spare area including a spare sector for replacing a defective sector among the plurality of sectors: a defect management information area for managing the replacement of the defective sector by the spare sector; and a volume space in which user data can be recorded. The volume space is configured so that a second spare area including a spare sector for replacing a defective sector among the plurality of sectors can be additionally allocated. Location information indicating a location of the second spare area is recorded in the defect management information area.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The present invention relates to an information recording medium,an information recording method and an informationrecording/reproduction system, in which it is possible to increase thereliability of data recording by dynamically extending the spare areaaccording to the frequency of occurrence of defective sectors.

[0003] 2. Description of the Related Art

[0004] An optical disk is a type of information recording medium whichhas a sector structure. In recent years, as the recording density andthe capacity of an optical disk have been increased, it has become moreimportant to ensure the reliability thereof.

[0005] Conventionally, a defect management method is known in the artfor managing defective sectors on the optical disk (i.e., sectors whichcannot be used for recording/reproduction of data). A spare area isprovided in advance on the optical disk. When there is a defectivesector on the optical disk, the defective sector is replaced by anothersector in the spare area. Thus, the reliability of the optical disk isensured. Such a defect management method is described in InternationalStandards Organization ISO/IEC 10090 for 90 mm optical disks.

[0006] The conventional defect management method described in theInternational Standards Organization ISO/IEC 10090 for 90 mm opticaldisks will now be outlined with reference to FIGS. 12 and 13.

[0007]FIG. 12 illustrates a structure of a data recording area 800 of aconventional optical disk.

[0008] The data recording area 800 includes a plurality of sectors. Eachof the plurality of sectors is assigned a physical sector number(hereinafter, referred to as a “PSN”).

[0009] The data recording area 800 includes a defect managementinformation area 801, a spare area 802 and a volume space 800 a. Thevolume space 800 a is arranged immediately after the spare area 802, andis defined as an area in which user data can be recorded. Each of thesectors included in the volume space 800 a is assigned a logical sectornumber (hereinafter, abbreviated as an “LSN”).

[0010] The size of the spare area 802 is predetermined. In order tochange the size of the spare area 802, it is necessary to change thedata structure of the replacement information stored in the defectmanagement information area 801 by using a special command with physicalformat utility software. This operation will hereinafter be referred toas an initialization operation.

[0011]FIG. 13 illustrates a procedure of a conventional format operationand a conventional data write operation. These operations are performedby a system control apparatus and an optical disk drive apparatus. Theoptical disk drive apparatus is connected to the system controlapparatus. The system control apparatus is, for example, a computersystem.

[0012] The format operation includes steps S901-S903 illustrated in FIG.13. The data write operation includes steps S904-S911. In FIG. 12, eachreference numeral that starts with “S” beside an arrow denotes arecording operation corresponding to a step illustrated in FIG. 13.

[0013] When an optical disk is inserted into the optical disk driveapparatus, the optical disk drive apparatus reads out the defectmanagement information area 801 and recognizes replacement informationwhich indicates that a defective sector has been replaced by a sparesector (step S901).

[0014] The system control apparatus performs a FAT/root directorycreation operation, issues a Write command and transmits data to theoptical disk drive apparatus (step S902).

[0015] The optical disk drive apparatus uses format utility software torecognize the physical structure of the optical disk and records thedata transmitted from the system control apparatus from the beginning ofthe volume space 800 a (step S903). As a result, a FAT area 803 and aroot directory area 804 are arranged starting from the beginning of thevolume space 800 a. Such a logical format operation is similar to theformat operation for a file system in a MS-DOS format. As a result, thearea from immediately after the root directory area 804 to the end ofthe optical disk is handled as a file data space 800 b which is managedby the FAT.

[0016] A data write operation for recording data (File-a) under the rootdirectory will now be described.

[0017] The system control apparatus performs a recording operation forthe data (File-a), issues a Write command and transmits data to theoptical disk drive apparatus (step S904). The location at which the datashould be recorded is specified by an LSN.

[0018] The optical disk drive apparatus records the data transmittedfrom the system control apparatus in a sector which is assigned thespecified LSN (step S905). Whether or not the data has been correctlyrecorded is determined by reading out the recorded data and by comparingthe read data with the transmitted data. When the data has not beencorrectly recorded, the sector which is assigned the specified LSN isdetected as a defective sector. The defective sector occurs mainly dueto dirt or dust attached to the optical disk.

[0019] For example, assume a case where sector b (sector 814)illustrated in FIG. 12 has been detected as a defective sector. In sucha case, the optical disk drive apparatus records the data which issupposed to be recorded in the defective sector 814 in #1 spare sector810 of the spare area 802, generates, as defect management information,#1 replacement entry 832 which indicates that the defective sector 814has been replaced by the #1 spare sector 810, and records the #1replacement entry 832 in the defect management information area 801(step S906).

[0020] The #1 replacement entry 832 includes location information 833indicating the location of the defective sector and location information834 indicating the location of the spare sector by which it is replaced.Each of the location information 833 and 834 is represented by a PSN.

[0021] When the system control apparatus instructs the optical diskdrive apparatus to read out data from the defective sector 814, theoptical disk drive apparatus performs address conversion with referenceto the #1 replacement entry 832 and reads out the data from the #1 sparesector 810.

[0022] Thus, by replacing a defective sector by a spare sector, it ispossible to ensure the reliability of the optical disk. Moreover, sincesuch defective sector replacement operation is performed by the opticaldisk drive apparatus, it is possible to ensure that the system controlapparatus always records data at a location corresponding to thespecified LSN. As a result, the system control apparatus can handle theoptical disk as a defect-free medium.

[0023] Then, the system control apparatus performs a root directoryrecording operation, issues a Write command and transmits data to theoptical disk drive apparatus (step S907).

[0024] The optical disk drive apparatus updates root directoryinformation recorded in the root directory area 804 according to thedata transmitted from the system control apparatus (step S908).

[0025] The system control apparatus performs a FAT recording operation,issues a Write command and transmits data to the optical disk driveapparatus (step S909).

[0026] The optical disk drive apparatus updates FAT information recordedin the FAT area 803 according to the data transmitted from the systemcontrol apparatus (step S910). Thus, the data (File-a) is registeredunder the root directory.

[0027] The optical disk drive apparatus records the updated defectmanagement information in the defect management information area 801.Such recording is performed when there is no data recording instructionfrom the system control apparatus for a few seconds.

[0028] In the above-described conventional defect management method, thesize of a spare area is fixed. Therefore, if there occurs defectivesectors beyond the size of the replacement area, data cannot be recordedon the optical disk even when an unallocated area available forrecording still exists on the optical disk. In order to record data onthe optical disk, it is necessary to change the size of the spare areaby performing another initialization operation on the optical disk. Insuch a case, data recorded in the volume space needed to be backed up onanother medium before performing the initialization operation becausethe LSN allocation would be changed over the entire area of the volumespace.

[0029] Especially, in a case where an optical disk is used with consumerequipment, the user may handle the optical disk while eating food or achild may inadvertently touch the surface of the optical disk, wherebymore defective sectors may occur on the optical disk than expected bythe manufacturer.

SUMMARY OF THE INVENTION

[0030] According to one aspect of this invention, an informationrecording medium including a plurality of sectors includes: a firstspare area including a spare sector for replacing a defective sectoramong the plurality of sectors; a defect management information area formanaging the replacement of the defective sector by the spare sector;and a volume space in which user data can be recorded. The volume spaceis configured so that a second spare area including a spare sector forreplacing a defective sector among the plurality of sectors can beadditionally allocated. Location information indicating a location ofthe second spare area is recorded in the defect management informationarea.

[0031] In one embodiment of the invention, the second spare area isallocated in an area separated from the first spare area.

[0032] In one embodiment of the invention, the second spare area isallocated in an area contiguous with the first spare area.

[0033] In one embodiment of the invention, each of the first spare areaand the second spare area is assigned physical sector numbers. Thephysical sector numbers assigned to the first spare area are smallerthan the physical sector numbers assigned to the second spare area.

[0034] In one embodiment of the invention, the second spare areaincludes a plurality of spare sectors. Each of the plurality of sparesectors is assigned a physical sector number. The defective sector isreplaced by one of the plurality of spare sectors in descending order ofthe physical sector numbers respectively assigned to the plurality ofspare sectors.

[0035] In one embodiment of the invention, the second spare area can beextended in a direction along which the physical sector numberdecreases.

[0036] In one embodiment of the invention, the second spare area isallocated outside the volume space.

[0037] In one embodiment of the invention, the second spare area isallocated inside the volume space. The location information indicatingthe location of the second spare area is recorded in a basic filestructure management area for managing a basic file structure.

[0038] According to another aspect of this invention, an informationrecording medium including a plurality of sectors includes: a firstspare area including a spare sector for replacing a defective sectoramong the plurality of sectors; a defect management information area formanaging the replacement of the defective sector by the spare sector;and a volume space in which user data can be recorded. The volume spaceis configured so that a second spare area including a spare sector forreplacing a defective sector among the plurality of sectors can beadditionally allocated. Information indicating an amount of spare areaavailable in the first spare area and information indicating an amountof spare area available in the second spare area are recorded in thedefect management information area.

[0039] In one embodiment of the invention, the information of the amountof spare area available in the first spare area includes a replacemententry which indicates that the defective sector has been replaced by aspare sector in the first spare area. The information of the amount ofspare area available in the second spare area includes a size of thesecond spare area and a replacement entry which indicates that thedefective sector has been replaced by a spare sector in the second sparearea.

[0040] In one embodiment of the invention, the information of the amountof spare area available in the first spare area includes a first fullflag which indicates whether or not there is any spare sector availablein the first spare area. The information of the amount of spare areaavailable in the second spare area includes a second full flag whichindicates whether or not there is any spare sector available in thesecond spare area.

[0041] According to still another aspect of this invention, there isprovided an information recording method for recording information on aninformation recording medium including a plurality of sectors. Theinformation recording medium includes: a first spare area including aspare sector for replacing a defective sector among the plurality ofsectors; a defect management information area for managing thereplacement of the defective sector by the spare sector; and a volumespace in which user data can be recorded, wherein the volume space isconfigured so that a second spare area including a spare sector forreplacing a defective sector among the plurality of sectors can beadditionally allocated. The information recording method includes thesteps of: (a) obtaining information which indicates a status ofconsumption of the first spare area; (b) determining whether or not toadditionally allocate the second spare area according to the informationwhich indicates the status of consumption of the first spare area; (c)when it is determined to additionally allocate the second spare area,making a part of the volume space available as the second spare area;and (d) recording information indicating a location of the second sparearea in the defect management information area.

[0042] In one embodiment of the invention, a first full flag whichindicates whether or not there is any spare sector available in thefirst spare area is recorded in the defect management information area.The step (a) includes the step of determining whether or not there isany spare sector available in the first spare area by referencing thefirst full flag.

[0043] In one embodiment of the invention, a replacement entry whichindicates that the defective sector has been replaced by a spare sectorin the first spare area is recorded in the defect management informationarea. The step (a) includes the step of determining whether or not thereis any spare sector available in the first spare area by referencing thereplacement entry.

[0044] In one embodiment of the invention, the step (c) includes thesteps of: (c-1) reducing the volume space; and (c-2) allocating an areaon an outer periphery side following the reduced volume space as thesecond spare area.

[0045] In one embodiment of the invention, the step (c) includes thestep of allocating a part of a logical volume space of the volume spaceas the second spare area.

[0046] In one embodiment of the invention, the step (c) includes thestep of moving data recorded in a part of a logical volume space of thevolume space to another part of the logical volume space, and thenallocating the part of the logical volume space as the second sparearea.

[0047] In one embodiment of the invention, the step (d) includes thestep of, before recording the information indicating the location of thesecond spare area in the defect management information area, detecting adefective sector in the part of the volume space made available.

[0048] In one embodiment of the invention, the second spare area isallocated in an area separated from the first spare area.

[0049] In one embodiment of the invention, the second spare area isallocated in an area contiguous with the first spare area.

[0050] In one embodiment of the invention, each of the first spare areaand the second spare area is assigned physical sector numbers. Thephysical sector numbers assigned to the first spare area are smallerthan the physical sector numbers assigned to the second spare area.

[0051] In one embodiment of the invention, the second spare areaincludes a plurality of spare sectors. Each of the plurality of sparesectors is assigned a physical sector number. The defective sector isreplaced by one of the plurality of spare sectors in descending order ofthe physical sector numbers respectively assigned to the plurality ofspare sectors.

[0052] In one embodiment of the invention, the second spare area can beextended in a direction along which the physical sector numberdecreases.

[0053] According to still another aspect of this invention, there isprovided an information recording method for recording information on aninformation recording medium including a plurality of sectors. Theinformation recording medium includes: a first spare area including aspare sector for replacing a defective sector among the plurality ofsectors: a defect management information area for managing thereplacement of the defective sector by the spare sector; and a volumespace in which user data can be recorded, wherein the volume space isconfigured so that a second spare area including a spare sector forreplacing a defective sector among the plurality of sectors can beadditionally allocated. The information recording method includes thesteps of: (a) obtaining information which indicates a status ofconsumption of the second spare area; (b) determining whether or not toadditionally allocate the second spare area according to the informationwhich indicates the status of consumption of the second spare area; (c)when it is determined to additionally allocate the second spare area,making a part of the volume space available as the second spare area;and (d) recording information indicating a location of the second sparearea in the defect management information area.

[0054] In one embodiment of the invention, a second full flag whichindicates whether or not there is any spare sector available in thesecond spare area is recorded in the defect management information area.The step (a) includes the step of determining whether or not there isany spare sector available in the second spare area by referencing thesecond full flag.

[0055] In one embodiment of the invention, a replacement entry whichindicates that the defective sector has been replaced by a spare sectorin the second spare area is recorded in the defect managementinformation area. The step (a) includes the step of determining whetheror not there is any spare sector available in the second spare area byreferencing the replacement entry.

[0056] In one embodiment of the invention, the step (c) includes thesteps of: (c-1) reducing the volume space; and (c-2) allocating an areaon an outer periphery side following the reduced volume space as thesecond spare area.

[0057] In one embodiment of the invention, the step (c) includes thestep of allocating a part of a logical volume space of the volume spaceas the second spare area.

[0058] In one embodiment of the invention, the step (c) includes thestep of moving data recorded in a part of a logical volume space of thevolume space to another part of the logical volume space, and thenallocating the part of the logical volume space as the second sparearea.

[0059] In one embodiment of the invention, the step (d) includes thestep of, before recording the information indicating the location of thesecond spare area in the defect management information area, detecting adefective sector in the part of the volume space made available.

[0060] In one embodiment of the invention, the step (d) includes thestep of resetting a second full flag which indicates whether or notthere is any spare sector available in the second spare area, afterrecording the information indicating the location of the second sparearea in the defect management information area.

[0061] In one embodiment of the invention, the second spare area isallocated in an area separated from the first spare area.

[0062] In one embodiment of the invention, the second spare area isallocated in an area contiguous with the first spare area.

[0063] In one embodiment of the invention, each of the first spare areaand the second spare area is assigned physical sector numbers. Thephysical sector numbers assigned to the first spare area are smallerthan the physical sector numbers assigned to the second spare area.

[0064] In one embodiment of the invention, the second spare areaincludes a plurality of spare sectors. Each of the plurality of sparesectors is assigned a physical sector number. The defective sector isreplaced by one of the plurality of spare sectors in descending order ofthe physical sector numbers respectively assigned to the plurality ofspare sectors.

[0065] In one embodiment of the invention, the second spare area can beextended in a direction along which the physical sector numberdecreases.

[0066] According to still another aspect of this invention, there isprovided an information recording/reproduction system for an informationrecording medium including a plurality of sectors. The informationrecording medium includes: a first spare area including a spare sectorfor replacing a defective sector among the plurality of sectors; adefect management information area for managing the replacement of thedefective sector by the spare sector; and a volume space in which userdata can be recorded, wherein the volume space is configured so that asecond spare area including a spare sector for replacing a defectivesector among the plurality of sectors can be additionally allocated. Theinformation recording/reproduction system includes: a remaining sparearea amount detection section for obtaining information indicating astatus of consumption of the first spare area; a spare area extensiondetermination section for determining whether or not to additionallyallocate the second spare area according to the information indicatingthe status of consumption of the first spare area; a spare extensionarea allocation section for, when it is determined to additionallyallocate the second spare area, making a part of the volume spaceavailable as the second spare area; and a spare area allocation sectionfor recording location information indicating a location of the secondspare area in the defect management information area.

[0067] In one embodiment of the invention, a first full flag whichindicates whether or not there is any spare sector available in thefirst spare area is recorded in the defect management information area.The remaining spare area amount detection section determines whether ornot there is any spare sector available in the first spare area byreferencing the first full flag.

[0068] In one embodiment of the invention, a replacement entry whichindicates that the defective sector has been replaced by a spare sectorin the first spare area is recorded in the defect management informationarea. The remaining spare area amount detection section determineswhether or not there is any spare sector available in the first sparearea by referencing the replacement entry.

[0069] In one embodiment of the invention, the spare extension areaallocation section reduces the volume space, and allocates an area on anouter periphery side following the reduced volume space as the secondspare area.

[0070] In one embodiment of the invention, the spare extension areaallocation section allocates a part of a logical volume space of thevolume space as the second spare area.

[0071] In one embodiment of the invention, the spare extension areaallocation section moves data recorded in a part of a logical volumespace of the volume space to another part of the logical volume space,and then allocates the part of the logical volume space as the secondspare area.

[0072] In one embodiment of the invention, the second spare area isallocated in an area separated from the first spare area.

[0073] In one embodiment of the invention, the second spare area isallocated in an area contiguous with the first spare area.

[0074] In one embodiment of the invention, each of the first spare areaand the second spare area is assigned physical sector numbers. Thephysical sector numbers assigned to the first spare area are smallerthan the physical sector numbers assigned to the second spare area.

[0075] In one embodiment of the invention, the second spare areaincludes a plurality of spare sectors. Each of the plurality of sparesectors is assigned a physical sector number. The defective sector isreplaced by one of the plurality of spare sectors in descending order ofthe physical sector numbers respectively assigned to the plurality ofspare sectors.

[0076] In one embodiment of the invention, the second spare area can beextended in a direction along which the physical sector numberdecreases.

[0077] In one embodiment of the invention, the informationrecording/reproduction system includes a recording apparatus forrecording information on the information recording medium and a controlapparatus for controlling the recording apparatus. The recordingapparatus includes a remaining spare amount reporting section forreporting to the control apparatus information indicating a status ofconsumption of the first spare area which is obtained from the remainingspare area amount detection section.

[0078] In one embodiment of the invention, the information indicatingthe status of consumption of the first spare area includes informationindicating a remaining amount of the first spare area.

[0079] In one embodiment of the invention, the information indicatingthe status of consumption of the first spare area includes informationindicating an error status in response to a data recording instruction.

[0080] According to still another aspect of this invention, there isprovided an information recording/reproduction system for an informationrecording medium including a plurality of sectors. The informationrecording medium includes: a first spare area including a spare sectorfor replacing a defective sector among the plurality of sectors; adefect management information area for managing the replacement of thedefective sector by the spare sector; and a volume space in which userdata can be recorded, wherein the volume space is configured so that asecond spare area including a spare sector for replacing a defectivesector among the plurality of sectors can be additionally allocated. Theinformation recording/reproduction system includes: a remaining sparearea amount detection section for obtaining information indicating astatus of consumption of the second spare area; a spare area extensiondetermination section for determining whether or not to additionallyallocate the second spare area according to the information indicatingthe status of consumption of the second spare area; a spare extensionarea allocation section for, when it is determined to additionallyallocate the second spare area, making a part of the volume spaceavailable as the second spare area; and a spare area allocation sectionfor recording location information indicating a location of the secondspare area in the defect management information area.

[0081] In one embodiment of the invention, a second full flag whichindicates whether or not there is any spare sector available in thesecond spare area is recorded in the defect management information area.The remaining spare area amount detection section determines whether ornot there is any spare sector available in the second spare area byreferencing the second full flag.

[0082] In one embodiment of the invention, a replacement entry whichindicates that the defective sector has been replaced by a spare sectorin the second spare area is recorded in the defect managementinformation area. The remaining spare area amount detection sectiondetermines whether or not there is any spare sector available in thesecond spare area by referencing the replacement entry.

[0083] In one embodiment of the invention, the spare extension areaallocation section reduces the volume space, and allocates an area on anouter periphery side following the reduced volume space as the secondspare area.

[0084] In one embodiment of the invention, the spare extension areaallocation section allocates a part of a logical volume space of thevolume space as the second spare area.

[0085] In one embodiment of the invention, the spare extension areaallocation section moves data recorded in a part of a logical volumespace of the volume space to another part of the logical volume space,and then allocates the part of the logical volume space as the secondspare area.

[0086] In one embodiment of the invention, the spare extension areaallocation section resets a second full flag which indicates whether ornot there is any spare sector available in the second spare area, afterrecording the information indicating the location of the second sparearea in the defect management information area.

[0087] In one embodiment of the invention, the second spare area isallocated in an area separated from the first spare area.

[0088] In one embodiment of the invention, the second spare area isallocated in an area contiguous with the first spare area.

[0089] In one embodiment of the invention, each of the first spare areaand the second spare area is assigned physical sector numbers. Thephysical sector numbers assigned to the first spare area are smallerthan the physical sector numbers assigned to the second spare area.

[0090] In one embodiment of the invention, the second spare areaincludes a plurality of spare sectors; each of the plurality of sparesectors is assigned a physical sector number; and the defective sectoris replaced by one of the plurality of spare sectors in descending orderof the physical sector numbers respectively assigned to the plurality ofspare sectors.

[0091] In one embodiment of the invention, the second spare area can beextended in a direction along which the physical sector numberdecreases.

[0092] In one embodiment of the invention, the informationrecording/reproduction system includes a recording apparatus forrecording information on the information recording medium and a controlapparatus for controlling the recording apparatus. The recordingapparatus includes a remaining spare amount reporting section forreporting to the control apparatus information indicating a status ofconsumption of the second spare area which is obtained from theremaining spare area amount detection section.

[0093] In one embodiment of the invention, the information indicatingthe status of consumption of the second spare area includes informationindicating a remaining amount of the second spare area.

[0094] In one embodiment of the invention, the information indicatingthe status of consumption of the second spare area includes informationindicating an error status in response to a data recording instruction.

[0095] Thus, the invention described herein makes possible the advantageof providing an information recording medium, an information recordingmethod and an information recording/reproduction system, in which it ispossible to increase the reliability of data recording by dynamicallyextending the spare area according to the frequency of occurrence ofdefective sectors.

[0096] This and other advantages of the present invention will becomeapparent to those skilled in the art upon reading and understanding thefollowing detailed description with reference to the accompanyingfigures.

BRIEF DESCRIPTION OF THE DRAWINGS

[0097]FIG. 1 is a diagram illustrating a structure of a data recordingarea 100 of an optical disk according to an embodiment of the presentinvention;

[0098]FIG. 2 is a block diagram illustrating a structure of aninformation recording/reproduction system 1 a according to an embodimentof the present invention;

[0099]FIG. 3 is a protocol chart illustrating a procedure of a formatoperation;

[0100]FIG. 4 is a diagram illustrating a structure of the data recordingarea 100 of an optical disk after a format operation;

[0101]FIG. 5 is a protocol chart illustrating a procedure of a datawrite operation;

[0102]FIGS. 6A-6C are protocol charts illustrating an procedure of anoperation of determining whether or not it is necessary to extend afirst spare area 102;

[0103]FIG. 7 is a protocol chart illustrating a procedure of anoperation of extending the first spare area 102 and a second spare area108;

[0104]FIG. 8 is a diagram illustrating a structure of the data recordingarea 100 of an optical disk according to an embodiment of the presentinvention;

[0105]FIG. 9 is a protocol chart illustrating a procedure of a datawrite operation for recording a file on an optical disk;

[0106]FIG. 10 is a protocol chart illustrating a procedure of anoperation which is performed when an optical disk is inserted into anoptical disk drive apparatus;

[0107]FIG. 11 is a diagram illustrating an operation of updating volumestructure areas 103 and 109 and a basic file structure area 104;

[0108]FIG. 12 is a diagram illustrating a structure of a data recordingarea 800 of a conventional optical disk; and

[0109]FIG. 13 is a protocol chart illustrating a procedure of aconventional format operation and a conventional data write operation.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0110] An information recording medium of the present invention includesa first spare area including a spare sector for replacing a defectivesector, a defect management information area for managing replacement ofa defective sector by a spare sector, and a volume space in which userdata can be recorded.

[0111] The volume space is configured so that a second spare areaincluding a spare sector for replacing a defective sector can beadditionally allocated. When all of the spare sectors provided inadvance in the first spare area have been consumed by the defectivesector replacement operation, a part of the volume space is madeavailable as a second spare area. Thus, by additionally allocating thesecond spare area when necessary, it is possible to ensure thedefect-free property of the optical disk even when there occurs moredefective sectors than expected by the manufacturer of the optical disk.

[0112] Location information indicating the location of the second sparearea is recorded in the defect management information area.

[0113] Embodiments of the present invention will now be described withreference to the drawings.

[0114] Embodiment 1 is an embodiment in which the second spare area isallocated inside the volume space by updating the file structure.Embodiment 2 is an embodiment in which the second spare area isallocated outside the volume space by updating the volume structure andthe file structure.

Embodiment 1

[0115]FIG. 2 illustrates a structure of an informationrecording/reproduction system 1 a according to an embodiment of thepresent invention. The information recording/reproduction system 1 arecords information on the information recording medium and reproducesinformation recorded on the information recording medium. Theinformation recording medium may be any type of rewritable optical disksuch as a DVD-RAM.

[0116] It is assumed in the following description that the informationrecording medium is a rewritable optical disk on/from which filesmanaged by a file structure defined in the ECMA167 standard can berecorded/reproduced by sectors. Hereinafter, such a rewritable opticaldisk will be referred to simply as an optical disk.

[0117] As illustrated in FIG. 2, the information recording/reproductionsystem 1 a includes a system control apparatus 200 and an optical diskdrive apparatus 204. The system control apparatus 200 and the opticaldisk drive apparatus 204 are connected to each other via an I/O bus 203.

[0118] The system control apparatus 200 includes a system controlsection 201 for processing file structure information and a memorycircuit 202. The system control section 201 may be implemented by, forexample, a microprocessor including a control program and a memory forstoring operation results.

[0119] The system control section 201 includes: a file structureoperation section 211 for performing a bit map operation for managingunallocated areas in a logical volume space; a spare extension areadetection section 212 for examining whether or not an area which isdetermined to be allocated as an additional spare area has already beenused; a file moving operation section 213 for allocating an additionalspare area by moving a file recorded in the area which is determined tobe allocated as an additional spare area to another area; a spareextension area allocation section 214 for registering an additionalspare area in a file structure; a spare area extension determinationsection 215 for determining whether or not the spare area should beextended based on the amount of spare area remaining; a command statusoperation section 216 for recognizing whether or not a defective sectorhas been detected during data recording by the execution result of aWrite command; and a spare extension area issue section 217 fordirecting a spare area to be extended for the optical disk driveapparatus 204 for updating the defect management information.

[0120] The memory circuit 202 includes a file structure memory 221, abit map memory 222, a data memory 223, and a spare area informationmemory 224 for storing information indicating the amount of spare arearemaining and information indicating the location of the spare area.

[0121] The optical disk drive apparatus 204 includes a drive controlsection 205 for performing a defect management operation and controllingthe recording/reproduction of data on/from the optical disk, and amemory circuit 206. The drive control section 205 may be implemented by,for example, a microprocessor including a control program and a memoryfor arithmetic operations.

[0122] The drive control section 205 includes: a remaining spare amountreporting section 231 for reporting the area size which can be replacedby the spare area; a spare area allocation section 232 for updatingdefect management information according to a spare area extensioncommand from the system control apparatus 200; a remaining spare areaamount detection section 233 for detecting the area which can bereplaced by the spare area based on a replacement entry of the defectmanagement information area; a defective sector operation section 234for allocating a defective sector detected during data recording by aspare sector of the spare area and recording data in the spare sector; adata write control section 235 for controlling recording of data to theoptical disk: and a data read control section 236 for controllingreproduction of data from the optical disk.

[0123] The memory circuit 206 includes a defect management informationmemory 241 for storing the defect management information, and a datamemory 242.

[0124] A format operation performed on an optical disk according to thepresent invention will now be described with reference to FIGS. 1, 2, 3and 4.

[0125]FIG. 4 illustrates a structure of the data recording area 100 ofan optical disk after the format operation.

[0126] The data recording area 100 includes a plurality of sectors. Eachof the plurality of sectors is assigned a PSN.

[0127] The data recording area 100 includes a defect managementinformation area 101, a first spare area 102 and a volume space 100 a.

[0128] Defect management information 130 is recorded in the defectmanagement information area 101. The defect management information 130includes an SDL descriptor 131 for identifying SDL information, a sparearea full flag 132, location information 133 indicating the location ofthe second spare area 108, and #1 replacement entry 134 indicating thata defective sector has been replaced by a spare sector.

[0129] The spare area full flag 132 includes a first full flag 138 forthe first spare area 102 and a second full flag 139 for the second sparearea 108. The first full flag 138 indicates whether or not there is anyspare sector available in the first spare area 102. The second full flag139, when it is reset, indicates that there is a spare sector availablein the second spare area 108. The second full flag 139, when it is set,indicates that there is no more spare sector available in the secondspare area 108 or that no second spare area 108 has been allocated.

[0130] Hereinafter, the location information 133 indicating the locationof the second spare area 108 will be referred to simply as the “secondspare area location information 133”. The second spare area locationinformation 133 is represented by, for example, the PSN of the firstsector included in the second spare area 108 and the PSN of the lastsector included in the second spare area 108.

[0131] In the example illustrated in FIG. 4, the second spare area hasnot yet been allocated on the data recording area 100. In such a case,the second spare area location information 133 has a value (e.g., theNULL value) which indicates that “the second spare area has not yet beenallocated on the data recording area 100”.

[0132] In the example illustrated in FIG. 4, the number of replacemententries included in the defect management information 130 is 1. Thedefect management information 130 may include a number of replacemententries equal to the number of spare sectors replacing defectivesectors. Therefore, when the number of spare sectors replacing defectivesectors is N, the defect management information 130 may include #1-#Nreplacement entries. Herein, N is any integer. Each of the #1-#Nreplacement entries includes location information 136 indicating thelocation of the defective sector and location information 137 indicatingthe location of the spare sector replacing the defective sector. Each ofthe location information 136 and 137 is represented by, for example, aPSN.

[0133] The size of the first spare area 102 is fixed. In the exampleillustrated in FIG. 4, the first spare area 102 includes three sparesectors 110-112, i.e., #1 spare sector to #3 spare sector. Each of thespare sectors 110-112 is used to replace a defective sector. The numberof spare sectors included in the first spare area 102 is not limited to3. The first spare area 102 may include any number of spare sectors.

[0134] The volume space 100 a is arranged immediately after the firstspare area 102, and is defined as an area in which user data can berecorded. Each of the sectors included in the volume space 100 a isassigned a logical sector number. The volume space 100 a includes thevolume structure area 103, a logical volume space 100 b and the volumestructure area 109.

[0135]FIG. 3 illustrates a procedure of a format operation. The formatoperation is performed by the system control apparatus 200 and theoptical disk drive apparatus 204.

[0136] The format operation includes steps S301-S307 illustrated in FIG.3. In FIG. 4, each reference numeral that starts with “S” beside anarrow denotes a recording operation corresponding to a step illustratedin FIG. 3.

[0137] When the optical disk is inserted into the optical disk driveapparatus 204, the defect management information 130 is read out fromthe defect management information area 101. The defect managementinformation 130 is stored in the defect management information memory241.

[0138] The defect management information 130 stored in the defectmanagement information memory 241 is referenced by the remaining spareamount reporting section 231 and the remaining spare area amountdetection section 233, as will be described below.

[0139] The remaining spare area amount detection section 233 recognizesthe location information of the first and second spare areas and thestatus of consumption of the first and second spare areas (step S301).The status of consumption of each spare area is recognized by, forexample, retrieving one of the replacement entries recorded in thedefect management information area 101 that has the smallest addressinformation (e.g., the physical sector number) of a spare sector.

[0140] The file structure operation section 211 issues a Get Spare Infocommand to the optical disk drive apparatus 204 in order to inquire asto the spare area information (step S302).

[0141] The remaining spare amount reporting section 231 reports thespare area information to the system control apparatus 200 based on thedefect management information 130 stored in the defect managementinformation memory 241 (step S303). The spare area information includesthe location information 133 indicating the location of the second sparearea. The spare area information is stored in the spare area informationmemory 224.

[0142] The file structure operation section 211 performs a volumestructure/basic file structure creation operation and issues a Writecommand and transmits data to the optical disk drive apparatus 204 (stepS304). The data is once stored in the file structure memory 221, andthen transferred from the file structure memory 221 to the data memory242.

[0143] The data write control section 235 records data stored in thedata memory 242 starting from the beginning of the volume space 100 a(i.e., the sector assigned the LSN “0”) (step S305). As a result, thevolume structure area 103 and the basic file structure area 104 areallocated starting from the beginning of the volume space 100 a.

[0144] Although not shown in FIG. 4, an anchor volume descriptorpointer, a volume descriptor sequence, a file set descriptor, a fileentry for the system stream directory and the system stream directoryare recorded in the volume structure area 103.

[0145] The basic file structure area 104 includes a space bit map area113, a file entry area 114, a root directory area 115 and a file entryarea 116.

[0146] A space bit map is recorded in the space bit map area 113. Thespace bit map is a string of bits which indicates the allocation statusin each sector of the logical volume space 100 b. By referencing thespace bit map, it is possible to examine the status of consumption ofeach sector in the logical volume space 100 b.

[0147] The location information and management information for the rootdirectory area 115 are recorded in the file entry area 114.

[0148] The names of the files recorded under the root directory and thelocation information for the file entry of each of such files arerecorded in the root directory area 115.

[0149] A file entry specified by the system stream directory is recordedin the file entry area 116. The location information of the stream ofthe second spare area to be registered in the system stream directory ismanaged by this file entry. The file entry includes a descriptor tag 141for identifying the file entry, a file attribute 142 and locationinformation 143 indicating the location of the second spare area 108.

[0150] Hereinafter, the location information 143 indicating the locationof the second spare area 108 will be referred to simply as the “secondspare area location information 143”. The second spare area locationinformation 143 is represented by, for example, the LSN of the firstsector included in the second spare area 108 and the size of the secondspare area 108.

[0151] In the format operation, information equivalent to the secondspare area location information 133 included in the defect managementinformation 130 is recorded in the file entry area 116 as the secondspare area location information 143. In the example illustrated in FIG.4, the second spare area location information 133 has the NULL value, asdiscussed above. Accordingly, the second spare area location information143 also has the NULL value.

[0152] Whether or not the data transmitted from the system controlapparatus 200 has been correctly recorded in the volume structure area103 and the basic file structure area 104 is determined by reading outthe recorded data and by comparing the read data with the transmitteddata (i.e., the data stored in the data memory 242). Such adetermination is performed by the defective sector operation section234.

[0153] For example, when the data transmitted from the system controlapparatus 200 is not correctly recorded in the root directory area 115,the root directory area 115 is detected as a defective sector. In such acase, the defective sector operation section 234 replaces the rootdirectory area 115 by one of the available spare sectors included in thefirst spare area 102 that has the largest address (i.e., the #1 sparesector 112). As a result, data which is supposed to be recorded in theroot directory area 115 is recorded in the #1 spare sector 112 of thefirst spare area 102. Moreover, the defective sector operation section234 generates the #1 replacement entry 134 which indicates that the rootdirectory area 115 has been replaced by the #1 spare sector 112 andstores the #1 replacement entry 134 in the defect management informationmemory 241 (step S306).

[0154] The defective sector operation section 234 records the updateddefect management information 130 stored in the defect managementinformation memory 241 in the defect management information area 101(step S307). Such recording is performed immediately after step S306 orwhen there is no command to record the data from the system controlapparatus 200 for a predetermined period of time (e.g., 5 seconds).

[0155] As described above, in the optical disk format operation,information that has consistency with the second spare area locationinformation 133 recorded in the defect management information area 101is recorded in the basic file structure area 104 as the second sparearea location information 143. By performing the above-described formatoperation on a used optical disk, it is possible to reuse the usedoptical disk. This is because even if all of the information in thevolume space 100 a is erased, the information in the second spare areais stored in the defect management information area 101.

[0156] The second spare area location information 143 is managed by thesystem control apparatus 200, and the second spare area locationinformation 133 is managed by the optical disk drive apparatus 204. Itis necessary to ensure that the location information 143 and 133 alwayshave consistency with each other. Countermeasures which can be takenwhen the information 143 and 133 are not consistent with each other anda method for recovering the inconsistency between the information 143and 133 will be described later.

[0157] A data write operation of recording a file named “File-a” underthe root directory of a formatted optical disk will now be describedwith reference to FIGS. 1, 2 and 5.

[0158]FIG. 1 illustrates a structure of the data recording area 100 ofthe optical disk after the data write operation.

[0159]FIG. 5 illustrates a procedure of the data write operation. Thedata write operation is performed by the system control apparatus 200and the optical disk drive apparatus 204.

[0160] The data write operation includes steps S401-S417 illustrated inFIG. 5. In FIG. 1, each reference numeral that starts with “S” beside anarrow denotes a recording operation corresponding to a step illustratedin FIG. 5.

[0161] When the optical disk is inserted into the optical disk driveapparatus 204, the same defect management information operation as thatdone in the format operation is performed as a start-up operation forthe optical disk drive apparatus 204 (step S401).

[0162] The file structure operation section 211 issues a Read command tothe optical disk drive apparatus 204 as a start-up operation for thesystem control apparatus 200 (step S402).

[0163] The data read control section 236 reproduces data from the volumestructure area 103 and the basic file structure area 104 according tothe address specified by the Read command and transmits the reproduceddata to the file structure memory 221 (step S403).

[0164] The file structure operation section 211 analyzes the volumestructure and the basic file structure based on the data transmitted tothe file structure memory 221. As a result, the file structure operationsection 211 recognizes the logical volume space 100 a based on the datareproduced from the volume structure area 103, recognizes the locationand the size of an unallocated area 107 based on the data reproducedfrom the space bit map area 113, recognizes the directory structurebased on the data reproduced from the root directory area 115, andrecognizes the second spare area location information 143 based on thedata reproduced from the file entry area 116 (step S402).

[0165] The file structure operation section 211 creates data of a filenamed “File-a” and stores the data in the data memory 223. Moreover, thefile structure operation section 211 creates data of a file entry andstores the data in the file structure memory 221. The file structureoperation section 211 issues a Write command and each data to theoptical disk drive apparatus 204 (step S404). The Write command is usedto record each data at the address of the unallocated area 107recognized in step S402.

[0166] The data stored in the data memory 223 and the data stored in thefile structure memory 221 are transmitted to the data memory 242. Thedata write control section 235 records the respective data transmittedin the data memory 242 in a data area 105 and in a file structure area106 according to the addresses specified by the Write command (stepS405).

[0167] The defective sector operation section 234 performs a replacementoperation by the same method as that described in the description of theformat operation. For example, assume a case where sector b (sector 118)illustrated in FIG. 1 has been detected as a defective sector. In such acase, the defective sector operation section 234 records the data, whichis supposed to be recorded in the defective sector 118, in #2 sparesector 111 of the first spare area 102, generates #2 replacement entry135 which indicates that the defective sector 118 has been replaced bythe #2 spare sector 111, and records the #2 replacement entry 135 in thedefect management information memory 241 (step S406).

[0168] In order to register the file (File-a) under the root directory,it is necessary to update the data recorded in the root directory area115. The file structure operation section 211 issues the Write commandand transmits the data to the optical disk drive apparatus 204 (stepS407).

[0169] The data write control section 235 references the #1 replacemententry 134, converts the address of the root directory area 115 specifiedby the Write command to the address of the #1 spare sector 112, andrecords the data transmitted from the system control apparatus 200 inthe #1 spare sector 112 (step S408).

[0170] The spare area extension determination section 215 determines,based on the status of consumption of the first spare area 102, whetheror not it is necessary to extend the first spare area 102. There arevarious methods for such a determination. The details of such variousmethods will later be described with reference to FIGS. 6A-6C.

[0171] Herein, an example of such determination methods will bedescribed. For example, the spare area extension determination section215 issues a Get Event Status Notification command to the optical diskdrive apparatus 204. This command is used to inquire as to the status ofconsumption of the first spare area 102. In response to this inquiry,the spare area extension determination section 215 determines that it isnecessary to extend the first spare area 102 when the optical disk driveapparatus 204 reports shortage information which indicates that theremaining amount of the first spare area 102 is less than apredetermined size (e.g., 1 MB) (step S409).

[0172] In response to the command issued from the system controlapparatus 200 in step S409, the remaining spare area amount detectionsection 233 calculates the remaining amount of the first spare area 102(e.g., the number of spare sectors in the first spare area 102 that areavailable for replacement) based on the information of the replacemententry stored in the defect management information memory 241. If theremaining amount is less than the predetermined size, the remainingspare area amount detection section 233 instructs the remaining spareamount reporting section 231 to report the shortage information to thesystem control apparatus 200. The remaining spare amount reportingsection 231 reports the shortage information to the system controlapparatus 200 (step S410).

[0173] In the example illustrated in FIG. 1, the defective sector 118 isdetected when recording data in the data area 105, and the #2 sparesector 111 is used to replace the defective sector 118. Therefore, the#3 spare sector 110 is the only spare sector in the first spare area 102that is available for replacement. Then, if another defective sectoroccurs, the first spare area 102 would be exhausted, whereby no morereplacement operation can be done. Therefore, the remaining spare amountreporting section 231 reports the shortage information to the systemcontrol apparatus 200.

[0174] In order to enlarge spare area, it is necessary to update thefile entry area 116, the location information 133 indicating thelocation of the second spare area 108, and the space bit map area 113.

[0175] The system control apparatus 200 recognizes the unallocated area107 based on the data reproduced from the space bit map area 113 anddetermines the area to be reserved as an additional spare area (i.e.,the area where the second spare area 108 is allocated). The systemcontrol apparatus 200 updates the data stored in the file structurememory 221 in order to register the extended spare area, and updates thedata stored in the bit map memory 222 so that the sectors of the areawhere the second spare area 108 is to be allocated are indicated as“allocated”.

[0176] The system control apparatus 200 issues a Write command andtransmits the data for the file entry area 116 stored in the filestructure memory 221 to the optical disk drive apparatus 204 (stepS411).

[0177] The optical disk drive apparatus 204 updates the file entry area116 by recording the data transmitted from the system control apparatus200 in the file entry area 116 (step S412).

[0178] The system control apparatus 200 issues an Alloc Spare commandand transmits the data for updating the second spare area locationinformation 133 to the optical disk drive apparatus 204 (step S413).

[0179] The optical disk drive apparatus 204 updates the second sparearea location information 133 stored in the defect managementinformation memory 241 based on the data transmitted from the systemcontrol apparatus 200 (step S414).

[0180] Through the operations of steps S412 and S414, the second sparearea 108 becomes available as an added spare area in the optical diskdrive apparatus 204. In the example illustrated in FIG. 1, the secondspare area 108 includes #4 spare sector 122 to #6 spare sector 120. Thenumber of spare sectors included in the second spare area 108 is notlimited to 3. The second spare area 108 may include any number of sparesectors.

[0181] The file structure operation section 211 transmits the data forthe space bit map area 113 stored in the file structure memory 221 tothe optical disk drive apparatus 204 (step S415).

[0182] The data write control section 235 updates the space bit map area113 by recording the data transmitted from the system control apparatus200 in the space bit map area 113 (step S416).

[0183] The defective sector operation section 234 records in the defectmanagement information area 101 the data which is stored in the defectmanagement information memory 241 by the method described above in theprocedure of the exemplary format operation (step S417).

[0184] As described above, in the data write operation for recording afile on the optical disk, it is possible to extend the first spare area102 (i.e., to additionally allocate the second spare area 108) based onthe status of consumption of the first spare area 102. Thus, it ispossible to increase the reliability of data recording withoutperforming an initialization operation.

[0185] When recording a file on the optical disk, the file structureoperation section 211 may determine locations where data can berecorded, sequentially starting from a sector with the least LSN. Inthis way, data is recorded preferentially from the inner periphery ofthe optical disk, so that data is less likely to be recorded in an areato which the second spare area is extended, whereby it is possible toeasily extend the spare area without moving files.

[0186] While an optical disk including the first spare area has beendescribed in the above embodiment, the present invention mayalternatively be applied to an optical disk in which the first sparearea does not exist. For example, it is possible not to allocate thesecond spare area when there is no defective sector, while additionallyallocating the second spare area when there occurs a defective sector.With such a defect management method, it is possible to obtain effectssimilar to those realized in the above-described embodiment.

[0187] Next, a method for determining whether or not it is necessary toextend the first spare area 102 will be described with reference toFIGS. 1, 2 and 6A-6C. This method may alternatively be applied to adetermination of whether or not it is necessary to extend the secondspare area 108.

[0188]FIGS. 6A-6C are protocol charts illustrating an procedure of anoperation of determining whether or not it is necessary to extend thefirst spare area 102. This operation is performed by the optical diskdrive apparatus 204 and the system control apparatus 200.

[0189]FIG. 6A illustrates an operation performed when the optical diskis inserted into the optical disk drive apparatus 204.

[0190] As described above, when the optical disk is inserted into theoptical disk drive apparatus 204, the file structure operation section211 reproduces the volume structure area 103 and the basic filestructure area 104 and instructs the data read control section 236 totransmit the reproduced data to the file structure memory 221 (step S402in FIG. 5).

[0191] The file structure operation section 211 analyzes the basic filestructure based on the data transmitted to the file structure memory221. As a result, the file structure operation section 211 calculatesthe size of area in the logical volume space 100 b that is available forrecording based on the data reproduced from the space bit map area 113.The size of area is calculated by, for example, summing the number ofsectors in the unallocated area 107. The calculation result is stored inthe spare area information memory 224.

[0192] The file structure operation section 211 issues a Get Spare Infocommand to the optical disk drive apparatus 204 in order to inquire asto the remaining amount of the first spare area 102 (step S601).

[0193] The remaining spare area amount detection section 233 calculatesthe remaining amount of the first spare area 102 (e.g., the number ofspare sectors that are available for replacement) by the method asdescribed above in the description of the format operation, and theremaining spare amount reporting section 231 reports the calculationresult to the system control apparatus 200 (step S602). The informationindicating the remaining amount of the first spare area 102 is stored inthe spare area information memory 224.

[0194] The spare area extension determination section 215 calculates theratio (A/B) of the remaining amount (A) of the first spare area 102 withrespect to the size of area (B) in the logical volume space 100 b thatis available for recording, and determines that the first spare area 102should be extended if the ratio (A/B) is less than a predetermined ratio(e.g., 0.5%) (step S603).

[0195] The determination operation illustrated in FIG. 6A is performedupon insertion of the optical disk before data is recorded thereon. Thedetermination operation has features that the procedure of thedetermination operation is simple and that the implementation of thedetermination operation is easy.

[0196]FIG. 6B illustrates an operation performed when recording a file.In the operation illustrated in FIG. 6B, when a file is recorded on theoptical disk, it is determined before recording the file whether or notit is necessary to extend the first spare area 102. Such a determinationis performed based on the size of the data to be recorded and theremaining amount of the first spare area 102.

[0197] The file structure operation section 211 stores the data to berecorded on the optical disk in the data memory 223 and calculates thesize of the data. The calculation result is stored in the spare areainformation memory 224.

[0198] The file structure operation section 211 issues a Get EventStatus Notification command to the optical disk drive apparatus 204 inorder to inquire as to the status of consumption of the first spare area102 (step S604).

[0199] The remaining spare area amount detection section 233 calculatesthe remaining amount of the first spare area 102 by the method describedabove in the description of the format operation. If the remainingamount of the first spare area 102 is less than a predetermined size(e.g., 1 MB), the remaining spare amount reporting section 231 reportsshortage information indicating the shortage of the first spare area 102to the system control apparatus 200 (step S605). The shortageinformation is stored in the spare area information memory 224.

[0200] The spare area extension determination section 215 determineswhether or not the first spare area 102 should be extended based on thesize of the data to be recorded and the shortage information (stepS606). For example, when the size of the data to be recorded is greaterthan the remaining amount of the first spare area 102, the spare areaextension determination section 215 determines that the first spare area102 should be extended.

[0201] With the determination operation illustrated in FIG. 6B, it ispossible to allocate the spare area according to the size of the file tobe recorded. Therefore, the operation has features that it is possibleto reasonably ensure the reliability of data recording, assuming thatthe frequency of occurrence of defective sectors is statisticallysubstantially constant.

[0202]FIG. 6C illustrates an operation performed in data transmission.

[0203] When a file is recorded on the optical disk, the data of the fileis divided into a plurality of data portions. For example, when datahaving a size of 1 MB is recorded on the optical disk, the data isdivided into a plurality of data portions each having a size of 32 kB.

[0204] A Write command is issued for each of the data portions. As aresult, each of the data portions is transmitted from the system controlapparatus 200 to the optical disk drive apparatus 204.

[0205] In the operation illustrated in FIG. 6C, it is determined whetheror not the first spare area 102 should be extended each time a dataportion is transmitted.

[0206] The file structure operation section 211 issues a Write commandto the optical disk drive apparatus 204 for each of the data portions(step S607).

[0207] The data write control section 235 records the data portiontransmitted from the system control apparatus 200 in a predeterminedsector, and when a defective sector is detected, the defective sectoroperation section 234 performs a replacement operation for the defectivesector.

[0208] When the recording operation for the data portions is completed,the remaining spare amount reporting section 231 reports Statusinformation indicating the execution result of the Write command to thesystem control apparatus 200 (step S608). The Status informationincludes information indicating the number of defective sectors whichhave occurred during the data transmission.

[0209] The command status operation section 216 receives the Statusinformation from the optical disk drive apparatus 204, and stores theinformation indicating the number of defective sectors which haveoccurred during the data transmission in the spare area informationmemory 224. The spare area extension determination section 215determines whether or not any defective sector has occurred during thedata transmission based on the information stored in the spare areainformation memory 224. If any defective sector has occurred, the sparearea extension determination section 215 determines that the first sparearea 102 should be extended by the number of defective sectors (stepS609).

[0210] The determination operation illustrated in FIG. 6C has a featurethat it is possible to effectively utilize the area of the optical diskthat is available for recording. This is because the spare area can beextended each time a defective sector is detected, whereby the size ofthe area which is allocated as a spare area can be reduced.

[0211] In the above-described determination operation, the report by theremaining spare amount reporting section 231 of the remaining amount ofthe spare area to the system control apparatus 200 may be done in anyform. For example, the remaining amount of the spare area may berepresented in the form of flags or in the form of a remaining amountvalue.

[0212] Next, a method for extending the first spare area 102 and thesecond spare area 108 will now be described in detail with reference toFIGS. 1, 2 and 7.

[0213]FIG. 7 is a protocol chart illustrating a procedure of anoperation of extending the first spare area 102 and a second spare area108. This operation is performed by the optical disk drive apparatus 204and the system control apparatus 200.

[0214] When it is determined by the spare area extension determinationsection 215 that the first spare area 102 (or the second spare area 108)should be extended, the spare extension area detection section 212determines the area to be allocated as an additional spare area based onthe second spare area location information 143 stored in the filestructure memory 221 (step S701).

[0215] When allocating the second spare area 108 for the first time, thesecond spare area 108 may be allocated in any area in the logical volumespace 100 b. However, when contiguous data of a large file size such asaudio video data (AV data) is recorded on the optical disk, it isnecessary to allocate a larger contiguous unallocated area 107.Therefore, when allocating the second spare area 108 for the first time,the second spare area 108 is desirably allocated starting from the endof the logical volume space 100 a.

[0216] The spare sectors included in the second spare area 108 are usedin an order such that spare sectors assigned with larger LSNs are usedbefore those assigned with smaller LSNs. In other words, the defectivesectors are replaced by the spare sectors in descending order of theLSNs assigned to the spare sectors.

[0217] When the second spare area 108 is extended, the second spare area108 is extended in a direction along which the LSN decreases. When thesecond spare area 108 is extended, the area allocated as an additionalspare area may be an area contiguous with the second spare area 108 oran area separated from the second spare area 108.

[0218] The file structure operation section 211 determines whether ornot the area to be allocated as an additional spare area is unallocatedbased on the space bit map information stored in the bit map memory 222(step S702). If the area is unallocated, the process proceeds to stepS704, and if not, the process proceeds to step S704 via step S703. Thisis because when the area to be allocated as an additional spare area isnot unallocated (i.e., when data is already recorded in the area), it isnecessary to move the data to another location before the area can beused as an additional spare area.

[0219] The file moving operation section 213 performs a file movingoperation (step S703). In particular, the file moving operation section213 examines the file structure of all the files on the optical disk todetermine the data recorded in the area. Then, the file moving operationsection 213 uses the space bit map information to search for an area towhich it is possible to move the data which has already been recorded inthe area to be allocated as an additional spare area, move the dataaccording to the attribute of the data, and update the information ofthe file structure managing the moved data (step S703). In this way, anadditional spare area is allocated.

[0220] Although not shown in FIG. 7, the spare extension area allocationsection 214 instructs the optical disk drive apparatus 204 to examinewhether or not there is any defective sector in the area to be allocatedas an additional spare area. When there is any defective sector in thearea, the spare extension area allocation section 214 instructs thespare extension area detection section 212 to increase the size of theadditional area, and returns the control of the process to step S701.Thus, the process is performed again from step S701.

[0221] When there is no defective sector in the area to be allocated asan additional spare area, the spare extension area allocation section214 issues a Write command and transmits data for updating the fileentry area 116 stored in the file structure memory 221 (step S704).

[0222] The data write control section 235 records the data transmittedfrom the system control apparatus 200 in the file entry area 116 (stepS705). As a result, the second spare area location information 143recorded in the file entry area 116 is updated.

[0223] The spare extension area issue section 217 issues an instructionto extend the spare area by using an Alloc Spare command. Specifically,the spare extension area issue section 217 issues an Alloc Spare commandand transmits data for updating the second spare area locationinformation 133 to the optical disk drive apparatus 204 (step S706).

[0224] The data write control section 235 updates the second spare arealocation information 133 stored in the defect management informationmemory 241 based on the data transmitted from the system controlapparatus 200 (step S707).

[0225] Thus, when any data is recorded in the area to be allocated as anadditional spare area, the data recorded in the area to be allocated asan additional spare area is moved to another area by analyzing theinformation of the file structure. In this way, the spare area can beextended even when data has been recorded in an area into which a sparearea is to be extended.

[0226] When there is any defective sector in an area to be allocated asan additional spare area, the size of the additional spare area isincreased according to the number of the defective sectors. Thus, it ispossible to reliably ensure a spare area of a required size.

[0227] Next, countermeasures which can be taken when the second sparearea location information 143 managed by the system control apparatus200 and the second spare area location information 133 managed by theoptical disk drive apparatus 204 are not consistent with each other anda method for recovering the inconsistency between the information 143and 133 will be described.

[0228] In FIG. 1, it is assumed that sector a (sector 117) in the dataarea 105 has been detected as a defective sector, and the sector 117 hasbeen replaced by the #4 spare sector 122. In such a case, the #4 sparesector 122 is specified by two LSNs. The first LSN is one of the LSNswhich are sequentially assigned in the volume space 100 a starting fromthe beginning of the volume space 100 a (herein, LSN=n). The second LSNis the LSN which is assigned to the replaced defective sector 117(herein, LSN=m).

[0229] When the second spare area location information 143 managed bythe system control apparatus 200 and the second spare area locationinformation 133 managed by the optical disk drive apparatus 204 are notconsistent with each other, the system control apparatus 200 maypossibly issue a Write command to the sector whose LSN is n. When therecording operation is performed, the data recorded in the #4 sparesector 122 is overwritten. As a result, data of the file named “File-a”is destroyed.

[0230] In order to avoid the fatal incident of destroying the data of afile, the optical disk drive apparatus 204 recognizes the sectorsincluded in the second spare area 108 by referencing the second sparearea location information 133. When it is requested to record data in asector included in the second spare area 108, the optical disk driveapparatus 204 reports to the system control apparatus 200 errorinformation indicating prohibition of a recording request to the secondspare area 108, without performing a recording operation correspondingto the request. In this way, it is possible to prevent data of a filefrom being destroyed due to the inconsistency between the second sparearea location information 133 and the second spare area locationinformation 143.

[0231] When the system control apparatus 200 receives the errorinformation, the system control apparatus 200 preferably performs anoperation of making the second spare area location information 133consistent with the second spare area location information 143. Forexample, as described above in the description of the format operation,the system control apparatus 200 may obtain the second spare arealocation information 133 based on the information reproduced from thedefect management information area 101, and update the second spare arealocation information 143 recorded in the file entry area 116 based onthe location information 133, while updating the space bit map stored inthe bit map memory 222 based on the location information 143.

[0232] Before updating the second spare area location information 143,it is preferred to confirm that an area which is newly registered in thefile entry as the second spare area 108 is not being used for anypurpose other than a spare area, as described above in the descriptionof the operation of extending a spare area. Such confirmation can bedone by examining all the file structures.

[0233] The above-described example where the location information 133and 143 are not consistent with each other is an exemplary case wherethe size of the second spare area 108 recorded in the defect managementinformation area 101 is greater than the size of the second spare area108 recorded in the file entry area 116.

[0234] It is possible to detect the inconsistency between the locationinformation 133 and 143 and to make the location information 133 and 143consistent with each other also when the size of the second spare area108 recorded in the defect management information area 101 is less thanthe size of the second spare area 108 recorded in the file entry area116.

[0235] For example, as a start-up operation for the system controlapparatus 200, the system control apparatus 200 may obtain the locationinformation 133 based on the data reproduced from the basic filestructure area 104, while obtaining the location information 143 bymaking an inquiry for the spare area information. By comparing thelocation information 133 and the location information 143 with eachother, it is possible to detect the inconsistency between the locationinformation 133 and 143.

[0236] When the inconsistency between the location information 133 and143 is detected, the system control apparatus 200 instructs the opticaldisk drive apparatus 204 to correctly update the second spare arealocation information by using an Alloc Spare command.

Embodiment 2

[0237] In Embodiment 2, an example where the second spare area 108 isallocated outside the volume space 100 a will be described.

[0238] In Embodiment 2, an information recording/reproduction system 1 bis used. The configuration of the information recording/reproductionsystem 1 b is the same as that of the information recording/reproductionsystem 1 a illustrated in FIG. 2, and thus will not be described below.

[0239] Each of the system control apparatus 200 and the optical diskdrive apparatus 204 is connected to the I/O bus 203 via a SCSI or ATAPIinterface. Commands and data are exchanged between the system controlapparatus 200 and the optical disk drive apparatus 204.

[0240] The system control apparatus 200 and the optical disk driveapparatus 204 may be an integrally-formed single apparatus. In such acase, the interface between the system control apparatus 200 and theoptical disk drive apparatus 204 may be a simplified dedicatedinterface.

[0241]FIG. 8 is a diagram illustrating a structure of the data recordingarea 100 of an optical disk according to an embodiment of the presentinvention. In FIG. 8, reference numeral 181 denotes the state of theoptical disk after the format operation, reference numeral 182 denotesthe state of the optical disk after a data write operation of recordinga file named “File-a” on the optical disk, and reference numeral 183denotes the state of the optical disk after a data write operation ofrecording a file named “File-b” on the optical disk.

[0242]FIG. 9 is a protocol chart illustrating a data write operation forrecording a file on an optical disk.

[0243] The data write operation illustrated in FIG. 9 includes: stepS807 of calculating the status of consumption of a spare area; step S809of determining additional allocation of a spare area based on thecalculated status of consumption: step S811 of making a part of thevolume space available as a spare area: and step S817 of registering thearea made available as a spare area. These steps are the same as thosein the data write operation described in Embodiment 1.

[0244] A data write operation of recording a file (File-a) on theoptical disk when the optical disk is in the state denoted by referencenumeral 181 in FIG. 8 will now be described. Through this data writeoperation, the state of the optical disk transitions from the statedenoted by reference numeral 181 in FIG. 8 to the state denoted byreference numeral 182 in FIG. 8. Through this data write operation, asecond spare area 153 is newly allocated. The state of the optical diskdenoted by reference numeral 181 is the same as that illustrated in FIG.4.

[0245] When the optical disk is inserted into the optical disk driveapparatus 204, as a start-up operation for the optical disk driveapparatus 204, the remaining spare area amount detection section 233obtains information which indicates the status of consumption of thefirst spare area 102 (step S801).

[0246] For example, the remaining spare area amount detection section233 may obtain information indicating the status of consumption of thefirst spare area 102 by referencing the spare area full flag 132. Thefirst full flag 138 being set indicates that all of the spare sectors inthe first spare area 102 are used (i.e., no spare sector is availablefor replacement in the first spare area 102).

[0247] In the first spare area 102, the spare sectors are sequentiallyused starting from the spare sector that is assigned the largestphysical sector number. In other words, the defective sectors arereplaced by the spare sectors in descending order of the physical sectornumbers assigned to the spare sectors. Such an order in which the sparesectors are used is also used in the second spare area 108.

[0248] The remaining spare area amount detection section 233 mayalternatively retrieve one of the replacement entries recorded in thedefect management information area 101 that has the smallest locationinformation (e.g., the physical sector number) of a spare sector so asto obtain the information indicating the status of consumption of thefirst spare area 102 based on the location information of the sparesector in the retrieved replacement entry. Thus, the remaining sparearea amount detection section 233 can know the amount of spare sectoravailable in the first spare area 102 based on the location informationof the spare sector in the retrieved replacement entry and the size ofthe first spare area 102. In the example illustrated in FIG. 8, the sizeof the first spare area 102 is predetermined. Therefore, the remainingspare area amount detection section 233 can know the amount of sparesectors available in the first spare area 102 based on the locationinformation of the spare sector in the retrieved replacement entry.

[0249] Thus, the information indicating the status of consumption of thefirst spare area 102 may be either the first full flag 138 or the amountof spare sector available in the first spare area 102.

[0250] As a start-up operation for the system control apparatus 200, thefile structure operation section 211 issues a Read command to theoptical disk drive apparatus 204 (step S802).

[0251] The data read control section 236 reproduces data recorded in thevolume structure area 103 and the basic file structure area 104according to the address specified by the Read command, and returns thereproduced data to the system control apparatus 200 (step S803).

[0252] The file structure operation section 211 receives the datareproduced from the optical disk drive apparatus 204, and analyzes thebasic file structure based on the reproduced data (step S802).

[0253] The file structure operation section 211 issues a Write commandand transmits data of the file (File-a) to the optical disk driveapparatus 204 (step S804).

[0254] The data write control section 235 records the data transmittedfrom the system control apparatus 200 in the data area 105 and the filestructure area 106 (step S805).

[0255] When any defective sector is detected in the data write operationin step S805, the defective sector operation section 234 performs areplacement operation of replacing the defective sector by a sparesector in the first spare area 102 (step S806).

[0256] The remaining spare area amount detection section 233 obtainsinformation indicating the status of consumption of the first spare area102 based on the information of the defect management information memory241 which has been updated in step S806 (step S807).

[0257] When the first spare area 102 has been exhausted, the remainingspare amount reporting section 231 notifies the system control apparatus200 of the information indicating that the first spare area 102 has beenexhausted (step S810). Such a notification can be made by, for example,by returning to the system control apparatus 200 “Recovered Error” asStatus information to the Write command transmitted in step S804.

[0258] The spare area extension determination section 215 recognizes theexhaustion of the first spare area 102 via the command status operationsection 216, and determines to allocate the second spare area 153 in anarea in the outermost periphery of the data recording area by reducingthe volume space 100 a (step S809).

[0259] Since the second spare area is allocated in an area in the datarecording area 100 whose PSN is largest, the second spare area locationinformation 133 is represented only by the PSN of the first sectorincluded in the second spare area 108, for example.

[0260] The spare extension area allocation section 214 instructs theoptical disk drive apparatus 204 to update the volume structure areas103 and 109 and the basic file structure area 104 by using a Readcommand and a Write command in order to allocate an area for allocatingthe second spare area 153 in the area on the outer periphery sidefollowing the volume space 100 a by reducing the volume space 100 a(step S811).

[0261] The data write control section 235 and the data read controlsection 236 update the volume structure areas 103 and 109 and the basicfile structure area 104 according to these commands (step S812).

[0262] The details of the update operation illustrated in steps S811 andS812 will be described later with reference to FIG. 11.

[0263] The spare extension area issue section 217 instructs the opticaldisk drive apparatus 204 to register the newly-allocated area as thesecond spare area 153 by using an Alloc Spare command (step S813). AFormat Unit command may alternatively be used instead of an Alloc Sparecommand.

[0264] The spare area allocation section 232 recognizes that a secondspare area has not been allocated by using the second spare arealocation information 133 stored in the defect management informationmemory 241, updates the second spare area location information 133stored in the defect management information memory 241 so as to newlyallocate the second spare area 153 based on an Alloc Spare command (or aFormat Unit command), and resets the second full flag 139 for the secondspare area 153 (step S814). Since the second spare area 153 is allocatedoutside the volume space, the sectors in the second spare area 153 donot have LSNs.

[0265] The defective sector operation section 234 records the updateddefect management information 130 stored in the defect managementinformation memory 241 in the defect management information area 101(step S817). Such recording is performed immediately after step S813 orwhen there is no data recording instruction from the system controlapparatus 200 for a predetermined period of time (e.g., 5 seconds).

[0266] Thus, the optical disk drive apparatus 204 and the system controlapparatus 200 cooperate with each other to additionally allocate thesecond spare area 153, whereby it is possible to increase thereliability of data recording.

[0267] The second spare area 153 may be allocated in an area separatedfrom the first spare area 102 or in an area contiguous with the firstspare area 102.

[0268] For example, the second spare area 153 is allocated in an areaincluding a sector which is assigned a physical sector number that islarger than that of any sector in the first spare area 102. When thesecond spare area 153 includes a plurality of spare sectors, thedefective sector is replaced by a corresponding one of the spare sectorsin descending order of the physical sector numbers assigned to the sparesectors.

[0269] Moreover, as indicated by reference numeral 182 in FIG. 8, thevolume space 100 a is re-configured to include the volume structure area103, the basic file structure area 104, the data area (File-a) 105, thefile structure area (File-a) 106, an unallocated area 151 and a volumestructure area 152, while holding the files that have already beenrecorded on the optical disk.

[0270] In this way, the volume space 100 a is re-configured so that thesecond spare area 153 is allocated outside the volume space 100 a. Thiseliminates the need for the operation for avoiding the inconsistencybetween the second spare area location information 133 recorded in thedefect management information area 101 and the second spare arealocation information 143 recorded in the file entry area 116, as thatdescribed in Embodiment 1 above.

[0271] Moreover, in Embodiment 2, it is not necessary to record thelocation information of the second spare area in the basic filestructure area 104. This eliminates the need to provide a special datastructure for the file system, whereby when reusing an optical disk onwhich a second spare area has once been allocated, it is possible toreuse the optical disk, after a logical format, not only for the filesystem described in the present embodiment but also for a moregenerally-used FAT file system which is used in, e.g., MS-DOS.

[0272] The size of the second spare area 153 may be determined accordingto the status of consumption of the first spare area 102. For example,if in step S810 the remaining spare amount reporting section 231 reportsthe exhaustion of the first spare area 102 to the system controlapparatus 200 when the size of the spare sector in the first spare area102 available for replacement has decreased to be 1 MB or less, then thesecond spare area 153 may be allocated by blocks of 1 MB.

[0273] When ECC (Error Correction Code) is arranged by blocks of 16sectors, one ECC block includes 16 sectors. Then, the replacement ofdefective sectors may be performed by ECC blocks, rather than by blocksof sectors. By performing the replacement operation by ECC blocks, it isno longer necessary to re-calculate ECCs, whereby therecording/reproduction system ban be simplified.

[0274] Preferably, the smallest unit by which the second spare area canbe extended is predetermined. For example, it may be determined toextend the second spare area by blocks of 32 ECC blocks (1 MB). In sucha case, as compared to a case where the spare area is extended by blocksof 2 to 3 sectors, it is possible to reduce the frequency of exhaustionof spare area. Moreover, by extending the second spare area by ECCblocks, it is possible to facilitate the replacement of defectivesectors by ECC blocks.

[0275] The descriptors defined in the ECMA167 standard which arerecorded in the volume structure area 103, the basic file structure area104, the file structure area (File-a) 106 and the volume structure area152 may be recorded on the optical disk in a dispersed arrangement.

[0276] A data write operation of recording a file (File-b) on theoptical disk when the optical disk is in the state denoted by referencenumeral 182 in FIG. 8 will now be described. Through this data writeoperation, the state of the optical disk transitions from the statedenoted by reference numeral 182 in FIG. 8 to the state denoted byreference numeral 183 in FIG. 8. Through this data write operation, anadditional spare area is allocated in an area which is contiguous withthe second spare area 153 which has already been allocated. As a result,a second spare area 158 is allocated which is obtained by extending thesecond spare area 153.

[0277] Thus, the second spare area 153 can be extended in a directionalong which the physical sector number decreases.

[0278] The data write operation of recording the file (File-b) on theoptical disk is also performed according to steps S801-S817 illustratedin FIG. 9.

[0279] The operations of steps S801-S803 are the same as those describedabove, and thus will not be described below.

[0280] The file structure operation section 211 issues a Write commandand transmits data of the file (File-b) to the optical disk driveapparatus 204 (step S804).

[0281] The data write control section 235 records the data transmittedfrom the system control apparatus 200 in a data area 154 and a filestructure area 155 (step S805).

[0282] When any defective sector is detected in the data write operationin step S805, the defective sector operation section 234 performs areplacement operation for replacing the defective sector by the sparesectors in the second spare area 153 (step S806). A replacement entryindicating that the defective sector has been replaced by a spare sectoris generated, and the replacement entry is stored in the defectmanagement information memory 241 before it is recorded in the defectmanagement information area 101.

[0283] If all of the spare sectors in the second spare area 153 havebeen consumed, the defective sector operation section 234 sets thesecond full flag 139 of the spare area full flag 132.

[0284] The remaining spare area amount detection section 233 obtainsinformation indicating the status of consumption of the second sparearea 153 (step S807). The method for obtaining the informationindicating the status of consumption of the second spare area 153 issimilar to the above-described method for obtaining the informationindicating the status of consumption of the first spare area 102.

[0285] When the second spare area 153 is exhausted, the remaining spareamount reporting section 231 notifies the system control apparatus 200of the information indicating that the second spare area 153 has beenexhausted (step S810).

[0286] The spare area extension determination section 215 recognizes theexhaustion of the second spare area 153 via the command status operationsection 216, and determines to newly allocate an additional spare areain an area which is contiguous with the second spare area 153 (stepS809).

[0287] The spare extension area allocation section 214 instructs theoptical disk drive apparatus 204 to update the volume structure areas103 and 152 and the basic file structure area 104 by using a Readcommand and a Write command in order to allocate an area for allocatingthe additional spare area by reducing the volume space 100 a (stepS811).

[0288] The data write control section 235 and the data read controlsection 236 update the volume structure areas 103 and 152 and the basicfile structure area 104 according to these commands (step S812).

[0289] The spare extension area issue section 217 instructs the opticaldisk drive apparatus 204 to register the newly-allocated area and thesecond spare area 153 as the new second spare area 158 (step S813).

[0290] The spare area allocation section 232 recognizes that the secondspare area 153 has been allocated by using the second spare arealocation information 133 stored in the defect management informationmemory 241, and checks the second full flag 139. Then, the spare areaallocation section 232 updates the second spare area locationinformation 133 stored in the defect management information memory 241so as to extend the second spare area in a direction along which thephysical sector number decreases, and when the second full flag 139 forthe second spare area 153 is set, resets the second full flag 139 (stepS814). Thus, it is possible to use a spare sector available forreplacement in the second spare area 158.

[0291] The defective sector operation section 234 records the updateddefect management information 130 stored in the defect managementinformation memory 241 in the defect management information area 101(step S817). Such recording is performed when there is no data recordinginstruction from the system control apparatus 200 for a predeterminedperiod of time (e.g., 5 seconds).

[0292] Thus, by the cooperation of the optical disk drive apparatus 204and the system control apparatus 200, it is possible to extend thesecond spare area according to the frequency of occurrence of defectivesectors.

[0293]FIG. 10 is a protocol chart illustrating a procedure of anoperation which is performed when an optical disk is inserted into anoptical disk drive apparatus. In this procedure, the status ofconsumption of the spare area is examined upon insertion of the opticaldisk. As a result, whether or not it is necessary to allocate anadditional spare area is determined according to the status ofconsumption of the spare area.

[0294] In the following description made in connection with FIG. 10, theterm “spare area” refers to the “first spare area 102”, the “secondspare area 153” or the “second spare area 158” illustrated in FIG. 8.

[0295] The file structure operation section 211 issues a Get Spare Infocommand to the optical disk drive apparatus 204 in order to inquire asto the status of consumption of the spare area (step S821). The filestructure operation section 211 may alternatively use a Read DVDStructure command instead of a Get Spare Info command.

[0296] The remaining spare area amount detection section 233 obtainsinformation indicating the status of consumption of the spare area (stepS807). The information indicating the status of consumption of the sparearea includes, for example, information indicating the size of area inthe spare area that is available for replacement.

[0297] The remaining spare amount reporting section 231 reports theinformation indicating the status of consumption of the spare area tothe system control apparatus 200 (step S810).

[0298] The spare area extension determination section 215 determineswhether or not to allocate an additional spare area according to thestatus of consumption of the spare area. For example, when the size ofarea in the spare area that is available for replacement is less than orequal to a predetermined size (e.g., 1 MB), the spare area extensiondetermination section 215 determines to newly allocate an additionalspare area (step S809).

[0299] The operations of steps S811-S817 illustrated in FIG. 10 are thesame as those of steps S811-S817 illustrated in FIG. 9, and thus willnot be described below.

[0300] Thus, by the cooperation of the optical disk drive apparatus 204and the system control apparatus 200, it is possible, before recordingdata, to allocate a spare area having an optimal size according to thestatus of consumption of the spare area.

[0301] An operation of updating the volume structure areas 103 and 109and the basic file structure area 104 will now be described in detailwith reference to FIG. 11. The update operation is performed by thespare extension area allocation section 214. In FIG. 11, each referencenumeral that starts with “S” denotes a step in the update operation.

[0302]FIG. 11 illustrates, as indicated by reference numerals 191 and192, the data structure of the optical disk in the state denoted byreference numerals 181 and 182 in FIG. 8, respectively, in greaterdetail, i.e., on the descriptor level, which is defined in the ECMA167standard.

[0303] The volume structure area 103 is arranged along the innerperiphery of the volume space 100 a. A main volume descriptor sequence161 for defining the volume space 100 a as a logical space, a logicalvolume integrity descriptor 162 having integrity information of thelogical volume space 100 a, an anchor volume descriptor pointerindicating the location at which to start reading out the volumestructure, and a file set descriptor 164 are recorded in the volumestructure area 103.

[0304] While a file set descriptor is defined as a file structureaccording to ECMA167, in the example illustrated in FIG. 11, a file setdescriptor is defined as a volume structure for the purpose ofdiscussion.

[0305] The volume structure area 109 is arranged in the outermostperiphery of the volume space 100 a. An anchor volume descriptor pointer165 and a reserve volume descriptor sequence 156 are recorded in thevolume structure area 109.

[0306] The basic file structure area 104 includes the space bit map area113, the file entry area 114, and the root directory area 115. A spacebit map for managing unallocated areas in the logical volume space 100 bis recorded in the space bit map area 113. The file entry of the rootdirectory is recorded in the file entry area 114. Information of theroot directory is recorded in the root directory area 115.

[0307] The spare extension area allocation section 214 retrieves thesize and the location of the unallocated area 107 based on theinformation reproduced from the space bit map area 113.

[0308] When the unallocated area 107 that is larger than the size of theadditional spare area to be allocated as the second spare area 153exists at the end of the logical volume space 100 b (i.e., a portionalong the outermost periphery of the logical volume space 100 b), thespare extension area allocation section 214 updates the space bit maparea 113 so as to reduce the logical volume space 100 b by the size ofthe additional spare area (step S101).

[0309] When there is no unallocated area 107 that is larger than thesize of the additional spare area, a file moving operation (step S703 inFIG. 7) is performed. As a result, data of a file which has already beenrecorded is moved to another area.

[0310] The spare extension area allocation section 214 updates and movesthe reserve volume descriptor sequence 156 and the anchor volumedescriptor pointer 165 so that the second spare area 153 can beallocated (steps S102 and S103).

[0311] The spare extension area allocation section 214 updates the mainvolume descriptor sequence 161 and the logical volume integritydescriptor 162 in order to define a reduced logical volume space (stepsS104 and S105).

[0312] Finally, the spare extension area allocation section 214 updatesan anchor volume descriptor pointer 163 in order to activate the updatedvolume structure and the updated file structure (step S106).

[0313] Thus, by making a part of the volume space 100 a available, it ispossible to allocate an area in which the second spare area 153 isallocated.

[0314] In the information recording medium of the present invention, thevolume space in which user data can be recorded is configured so thatthe second spare area can be additionally allocated. Thus, it ispossible to dynamically extend the spare area according to the frequencyof occurrence of defective sectors. As a result, it is possible toensure the reliability of data recording without performing aninitialization operation or a re-format operation even when there occursmore defective sectors than expected.

[0315] Since the spare area can be extended according to the frequencyof occurrence of defective sectors, it is possible to maximize theamount of user data which can be recorded in the logical volume space.

[0316] When data is recorded in an area to be allocated as an additionalspare area, the additional spare area can be allocated after moving thedata to another area. Thus, it is possible to increase the freedom inthe area where an additional spare area can be allocated.

[0317] Various other modifications will be apparent to and can bereadily made by those skilled in the art without departing from thescope and spirit of this invention. Accordingly, it is not intended thatthe scope of the claims appended hereto be limited to the description asset forth herein, but rather that the claims be broadly construed.

What is claimed:
 1. An information recording medium including aplurality of sectors, the information recording medium comprising a datarecording area, the data recording area including: a first spare areahaving a replacement area including a spare sector for replacing adefective area including a defective sector among the plurality ofsectors; a defect management information area in which defect managementinformation for managing the replacement of the defective area includingthe defective sector by the replacement area including the spare sectoris recorded: and a volume space in which user data can be recorded,wherein: each of the sectors in the data recording area is assigned aphysical sector number; in the data recording area, a second spare areahaving a replacement area including a spare sector for replacing adefective area including a defective sector among the plurality ofsectors can be allocated in an area which is outside the volume spaceand which includes a sector having a physical sector number which islarger than a physical sector number assigned to the spare sector in thefirst spare area, and the second spare area can be extended outside thevolume space in a direction along which the physical sector numberdecreases; and the defect management information area has an area forrecording location Information which indicates a location of the secondspare area.
 2. An information recording method for recording informationon an information recording medium including a plurality of sectors, theinformation recording medium comprising a data recording area, the datarecording area including: a first spare area having a replacement areaincluding a spare sector for replacing a defective area including adefective sector among the plurality of sectors; a defect managementinformation area in which defect management information for managing thereplacement of the defective area including the defective sector by thereplacement area including the spare sector is recorded; and a volumespace in which user data can be recorded, wherein: in the data recordingarea, a second spare area having a replacement area including a sparesector for replacing a defective area including a defective sector amongthe plurality of sectors can be extended; and each of the spare sectorin the first spare area and the spare sector in the second spare area isassigned a physical sector number, and the physical sector numberassigned to the spare sector in the first spare area is smaller than thephysical sector number assigned to the spare sector in the second sparearea, the information recording method comprising the steps of: (a)obtaining information which indicates a status of consumption of thesecond spare area; (b) determining whether or not to extend, in the datarecording area, the second spare area having a replacement areaincluding a spare sector for replacing a defective area including adefective sector among the plurality of sectors according to theinformation which indicates the status of consumption of the secondspare area; and (c) when the second spare area is extended, reducing thesize of the volume space, allocating an area outside of, and continuingfrom, the reduced volume space as the second spare area, and extendingthe second spare area in a direction along which the physical sectornumber decreases.
 3. An information recording/reproduction system for aninformation recording medium including a plurality of sectors, theinformation recording medium comprising a data recording area, the datarecording area including: a first spare area having a replacement areaincluding a spare sector for replacing a defective area including adefective sector among the plurality of sectors; a defect managementinformation area in which defect management information for managing thereplacement of the defective area including the defective sector by thereplacement area including the spare sector is recorded; and a volumespace in which user data can be recorded, wherein: in the data recordingarea, a second spare area having a replacement area including a sparesector for replacing a defective area including a defective sector amongthe plurality of sectors can be extended; and each of the spare sectorin the first spare area and the spare sector In the second spare area isassigned a physical sector number, and the physical sector numberassigned to the spare sector in the first spare area is smaller than thephysical sector number assigned to the spare sector in the second sparearea, the information recording/reproduction system comprising: aremaining spare area amount detection section for obtaining informationwhich indicates a status of consumption of the second spare area; aspare area extension determination section for determining whether ornot to extend, in the data recording area, the second spare area havinga replacement area including a spare sector for replacing a defectivearea including a defective sector among the plurality of sectorsaccording to the information which indicates the status of consumptionof the second spare area; and a spare extension area allocation sectionfor, when the second spare area is extended, reducing the size of thevolume space, allocating an area outside of, and continuing from, thereduced volume space as the second spare area, and extending the secondspare area in a direction along which the physical sector numberdecreases.